﻿using System;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020004C4 RID: 1220
	[ExecuteInEditMode]
	[AddComponentMenu("Image Effects/Displacement/Twirl")]
	public class Twirl : ImageEffectBase
	{
		// Token: 0x06001908 RID: 6408 RVA: 0x00071DA1 File Offset: 0x000701A1
		private void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			ImageEffects.RenderDistortion(base.material, source, destination, this.angle, this.center, this.radius);
		}

		// Token: 0x04000FD3 RID: 4051
		public Vector2 radius = new Vector2(0.3f, 0.3f);

		// Token: 0x04000FD4 RID: 4052
		[Range(0f, 360f)]
		public float angle = 50f;

		// Token: 0x04000FD5 RID: 4053
		public Vector2 center = new Vector2(0.5f, 0.5f);
	}
}
